﻿using AgencyManagerSystem.Common;
using AgencyManagerSystem.DataFetcher;
using AgencyManagerSystem.DataUpdater;
using AgencyManagerSystem.Model;
using System;

namespace AgencyManagerSystem.Core
{
    public class NoticManager : DocManager<NoticModel>
    {

        NoticUpdater updater;
        public NoticManager()
        {
            if (updater == null)
                InjectionUpdater();
        }

        protected override BaseUpdater<NoticModel> InjectionUpdater()
        {
            NoticUpdaterCreator noticUpdaterCreator = new NoticUpdaterCreator();
            updater = noticUpdaterCreator.CreateNoticUpdaterInstance();
            return updater;
        }
    }
}
